<script type="text/javascript">
var s = {
	m : "<?php echo $site['method'] ?>",
}
</script>
<div id="edit-title"><?php echo $index['title'] ?></div>
<div id="system-sub-menu">
	<ul>
	<?php foreach($index['menus'] as $menu) { ?>
	<li><a href="<?php echo $menu['url']; ?>" target="_self"><?php echo $menu['name'] ?></a></li>
	<?php } ?>
	</ul>
</div>
<div id="group">
	<div id="check-text"><span>全选</span></div>
	<?php if ('enable' == $index['list']) { ?>
	<div id="check-del">删除</div>
	<?php } else { ?>
	<div id="check-recover">回收</div>
	<?php } ?>
</div>
<div id="list">
	<?php foreach ($types as $v) { ?>
	<div class="each">
		<div class="check"><input type="checkbox" class="id" name="ids[]" value="<?php echo $v->id; ?>" /></div>
		<div class="name"><?php echo $v->name ?></div>
		<div class="btn"><a href="<?php echo $site['root'] . 'system/goods/update/' . $v->id ?>" class="edit"></a><?php if($v->del_flg == 0){ ?><a href="javascript:void(0)" class="del"></a><?php }else{ ?><a href="javascript:void(0)" class="recover"><?php } ?></a></div>
		<div class="create-date"><?php echo date('Y/d/m', $v->create_date); ?></div>
	</div>
	<?php } ?>
</div>